
import java.io.PrintWriter;
import java.util.HashMap;

class IdeType extends Type {

	private String name_;

	public IdeType(String n) {
		name_ = n;
	}

	@Override
	public void print(PrintWriter pw) {
		pw.println("Node name : IdeType [" + name_ + "]");
	}
	public String translate(HashMap<String, PrintWriter> pws,String strPare, SymbolTable rt, String parent){
		String key = rt.getStack().get(1);
		PrintWriter pw = pws.get(key);
		
		pw.print(name_);
		return null;
	}

	@Override
	public String getName() {
		return this.name_;
	}

}
